/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package action;

import model.DiagramModel;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

/**
 *
 * @author Jelle
 */
public class ClearAction  extends AbstractAction {
    private DiagramModel model;

    public ClearAction(DiagramModel model){
        this.model = model;
    }

    public void actionPerformed(ActionEvent e) {
        model.removeAll();
    }

}
